how to make sliding card using html css javascript